package ru.yermak.bookkeeping.currency;

import ru.yermak.bookkeeping.model.Currency;

import java.util.List;
import java.util.HashMap;


/**
 * User: harrier
 * Date: Oct 9, 2008
 */
public class MockCurrencyDao implements CurrencyDao {
    private HashMap<Integer, List<Currency>> currenciesByUserId = new HashMap<Integer, List<Currency>>();

    public List<Currency> findCurrencyByUserId(Integer userId) {
        return currenciesByUserId.get(userId);
    }

    public Integer insertCurrency(Currency currency) {
        return null;
    }

    public void removeCurrency(Currency currency) {
    }

    public Currency getById(Integer currencyId) {
        return null;
    }

    public void updateCurrency(Currency currency) {
    }

    public void putCurrency(Integer userId, List<Currency> currencies) {
        currenciesByUserId.put(userId, currencies);
    }
}
